Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
Identify the script that causes "Refused to execute a script because its hash, its nonce, or 'unsafe-inline' .... f the Content Security Policy

I have CSP configured to block all inline styling and script tags. But I have a html file where there are multiple script tags import.

<script src="lib/js/demo1.js"></script>
<script src="lib/js/demo2.js"></script>
<script src="lib/js/demo3.js"></script>
<script src="lib/js/demo4.js"></script>

I just see the error in the browser and it does not even tell me which script is causing the issue :

Refused to execute a script because its hash, its nonce, or 'unsafe-inline' appears in neither the script-src directive nor the default-src directive of the Content Security Policy.

There are around 15-20 such imports and all I want to do is find the script tag that is causing the issue. Any pointers in that direction will be appreciated.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda